Optimal. Leaf size=115 \[ \frac {b (a+b x) (d+e x)^{-1-2 p} \left (a^2+2 a b x+b^2 x^2\right )^p}{2 (b d-a e)^2 (1+p) (1+2 p)}+\frac {(a+b x) (d+e x)^{-2 (1+p)} \left (a^2+2 a b x+b^2 x^2\right )^p}{2 (b d-a e) (1+p)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 115, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {660, 47, 37}
\begin {gather*} \frac {b (a+b x) \left (a^2+2 a b x+b^2 x^2\right )^p (d+e x)^{-2 p-1}}{2 (p+1) (2 p+1) (b d-a e)^2}+\frac {(a+b x) \left (a^2+2 a b x+b^2 x^2\right )^p (d+e x)^{-2 (p+1)}}{2 (p+1) (b d-a e)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 37
Rule 47
Rule 660
Rubi steps
\begin {align*} \int (d+e x)^{-3-2 p} \left (a^2+2 a b x+b^2 x^2\right )^p \, dx &=\left (\left (a b+b^2 x\right )^{-2 p} \left (a^2+2 a b x+b^2 x^2\right )^p\right ) \int \left (a b+b^2 x\right )^{2 p} (d+e x)^{-3-2 p} \, dx\\ &=\frac {(a+b x) (d+e x)^{-2 (1+p)} \left (a^2+2 a b x+b^2 x^2\right )^p}{2 (b d-a e) (1+p)}+\frac {\left (b \left (a b+b^2 x\right )^{-2 p} \left (a^2+2 a b x+b^2 x^2\right )^p\right ) \int \left (a b+b^2 x\right )^{2 p} (d+e x)^{-2 (1+p)} \, dx}{2 (b d-a e) (1+p)}\\ &=\frac {b (a+b x) (d+e x)^{-1-2 p} \left (a^2+2 a b x+b^2 x^2\right )^p}{2 (b d-a e)^2 (1+p) (1+2 p)}+\frac {(a+b x) (d+e x)^{-2 (1+p)} \left (a^2+2 a b x+b^2 x^2\right )^p}{2 (b d-a e) (1+p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 72, normalized size = 0.63 \begin {gather*} \frac {(a+b x) \left ((a+b x)^2\right )^p (d+e x)^{-2 (1+p)} (2 b d (1+p)-a e (1+2 p)+b e x)}{2 (b d-a e)^2 (1+p) (1+2 p)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.72, size = 139, normalized size = 1.21
method | result | size |
gosper | \(-\frac {\left (e x +d \right )^{-2-2 p} \left (b x +a \right ) \left (2 a e p -2 b d p -b e x +a e -2 b d \right ) \left (b^{2} x^{2}+2 a b x +a^{2}\right )^{p}}{2 \left (2 a^{2} e^{2} p^{2}-4 a b d e \,p^{2}+2 b^{2} d^{2} p^{2}+3 a^{2} e^{2} p -6 a b d e p +3 b^{2} d^{2} p +a^{2} e^{2}-2 a b d e +b^{2} d^{2}\right )}\) | \(139\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.88, size = 216, normalized size = 1.88 \begin {gather*} \frac {{\left (2 \, a b d^{2} p + 2 \, a b d^{2} + 2 \, {\left (b^{2} d^{2} p + b^{2} d^{2}\right )} x - {\left (2 \, a b p x^{2} - b^{2} x^{3} + {\left (2 \, a^{2} p + a^{2}\right )} x\right )} e^{2} - {\left (2 \, a^{2} d p - 2 \, a b d x + a^{2} d - {\left (2 \, b^{2} d p + 3 \, b^{2} d\right )} x^{2}\right )} e\right )} {\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{p} {\left (x e + d\right )}^{-2 \, p - 3}}{2 \, {\left (2 \, b^{2} d^{2} p^{2} + 3 \, b^{2} d^{2} p + b^{2} d^{2} + {\left (2 \, a^{2} p^{2} + 3 \, a^{2} p + a^{2}\right )} e^{2} - 2 \, {\left (2 \, a b d p^{2} + 3 \, a b d p + a b d\right )} e\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: HeuristicGCDFailed} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.83, size = 259, normalized size = 2.25 \begin {gather*} {\left (a^2+2\,a\,b\,x+b^2\,x^2\right )}^p\,\left (\frac {x\,\left (2\,b^2\,d^2-a^2\,e^2-2\,a^2\,e^2\,p+2\,b^2\,d^2\,p+2\,a\,b\,d\,e\right )}{2\,{\left (a\,e-b\,d\right )}^2\,{\left (d+e\,x\right )}^{2\,p+3}\,\left (2\,p^2+3\,p+1\right )}+\frac {b^2\,e^2\,x^3}{2\,{\left (a\,e-b\,d\right )}^2\,{\left (d+e\,x\right )}^{2\,p+3}\,\left (2\,p^2+3\,p+1\right )}-\frac {a\,d\,\left (a\,e-2\,b\,d+2\,a\,e\,p-2\,b\,d\,p\right )}{2\,{\left (a\,e-b\,d\right )}^2\,{\left (d+e\,x\right )}^{2\,p+3}\,\left (2\,p^2+3\,p+1\right )}+\frac {b\,e\,x^2\,\left (3\,b\,d-2\,a\,e\,p+2\,b\,d\,p\right )}{2\,{\left (a\,e-b\,d\right )}^2\,{\left (d+e\,x\right )}^{2\,p+3}\,\left (2\,p^2+3\,p+1\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________